#include<bits/stdc++.h>
using namespace std;
const int maxn=1e5+5;
int a[maxn];
bool vis[maxn];
bool dea[maxn];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    ios::sync_with_stdio(false);
    int n;
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>a[i];
    }
    sort(a+1,a+n+1);
    int ans=n;
    for(int i=1;i<=n;i++){
        while(dea[i]==1){
            i++;
        }
        int tmp=upper_bound(a+1,a+n+1,a[i])-a;
        if(tmp==n+1){
            cout<<ans<<endl;
            return 0;
        }
        else{
            if(vis[tmp]==1){
                bool flag=false;
                for(int j=tmp;j<=n;j++){
                    if(vis[j]==0){
                        tmp=j;
                        flag=true;
                        break;
                    }
                }
                if(flag==false){
                    cout<<ans<<endl;
                    return 0;
                }
                else{
                    vis[tmp]=1;
                    dea[i]=1;
                    ans--;
                }
            }
            else{
                vis[tmp]=1;
                dea[i]=1;
                ans--;
            }
        }
    }
    return 0;
}
